Skip to content

[WIP] .github: Add workflow to allow CI rerun via PR comment.#4981

Closed
OhmSpectator wants to merge 1 commit intolf-edge:masterfrom
OhmSpectator:feature/rerun-ci
Closed

[WIP] .github: Add workflow to allow CI rerun via PR comment.#4981
OhmSpectator wants to merge 1 commit intolf-edge:masterfrom
OhmSpectator:feature/rerun-ci

Conversation

@OhmSpectator
Copy link
Copy Markdown
Member

@OhmSpectator OhmSpectator commented Jun 23, 2025

Description

Introduce a GitHub Actions workflow that enables authorized users to trigger a CI rerun by commenting /rerun-ci on a pull request. The workflow verifies the commenter against the list in CODEOWNERS before proceeding. It identifies failed workflow runs for the PR and attempts to rerun them. This aims to streamline CI management and restricts rerun capabilities to approved users, improving security and workflow efficiency.

PR dependencies

None.

How to test and validate this PR

This change is a workflow change, so no need to verify by the SysTest team.

Here I describe how it is expected to work.

  1. Open or create a pull request in the repository.
  2. Ensure your GitHub username is listed in .github/CODEOWNERS.
  3. Trigger a workflow run and allow at least one job to fail (you may need to use a draft PR for testing).
  4. Comment /rerun-ci on the pull request.
  5. Verify that the workflow is triggered and only runs for users allowed in CODEOWNERS.
  6. Confirm that any failed workflow runs for the PR are retried.
  7. If a user not listed in CODEOWNERS comments /rerun-ci, the workflow should not rerun any jobs and should exit with an error.

This change is covered by the new workflow logic and can be observed through the Actions tab in the GitHub interface.

Changelog notes

None. Not user-seen changes.

PR Backports

  • 14.5-stable: No
  • 13.4-stable: No

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR
  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

@OhmSpectator OhmSpectator marked this pull request as draft June 23, 2025 10:29
@OhmSpectator OhmSpectator requested a review from rucoder June 23, 2025 10:31
Introduce a GitHub Actions workflow that enables authorized users to trigger a
CI rerun by commenting `/rerun-ci` on a pull request. The workflow verifies the
commenter against the list in CODEOWNERS before proceeding. It identifies
failed workflow runs for the PR and attempts to rerun them. This aims to
streamline CI management and restricts rerun capabilities to approved users,
improving security and workflow efficiency.

Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
@OhmSpectator
Copy link
Copy Markdown
Member Author

@rene can we test this PR within your repo?

@rene
Copy link
Copy Markdown
Contributor

rene commented Jun 23, 2025

@rene can we test this PR within your repo?

Sure, just open the PR there, let's test it....

@OhmSpectator
Copy link
Copy Markdown
Member Author

We are testing it here now: rene#65

@OhmSpectator OhmSpectator changed the title .github: Add workflow to allow CI rerun via PR comment. [WIP] .github: Add workflow to allow CI rerun via PR comment. Jun 24, 2025
@OhmSpectator
Copy link
Copy Markdown
Member Author

Replace with #4994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants